package com.yunxi.model.sys;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 组织结构
 * </p>
 *
 * @author caoYong
 * @since 2019-05-08
 */
@Data
@EqualsAndHashCode(callSuper = false)

@TableName("sys_org")
@ApiModel(value="Org对象", description="组织结构")
public class Org implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "ORG_ID", type = IdType.UUID)
    private String orgId;

    @ApiModelProperty(value = "公司代码")
    @TableField("ORG_CODE")
    private String orgCode;

    @ApiModelProperty(value = "公司名称")
    @TableField("ORG_NAME")
    private String orgName;

    @ApiModelProperty(value = "公司简称")
    @TableField("ORG_SIMPLE_NAME")
    private String orgSimpleName;

    @ApiModelProperty(value = "上级公司")
    @TableField("PID")
    private String pid;

    @ApiModelProperty(value = "直属公司ID")
    @TableField("RID")
    private String rid;

    @ApiModelProperty(value = "状态(1开启0关闭)")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY",fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "0店端1厂端")
    @TableField("ORG_TYPE")
    private Integer orgType;

    @ApiModelProperty(value = "全称")
    @TableField("FULL_NAME")
    private String fullName;

    private Integer isDel;

    private transient String hasChild;

    @ApiModelProperty(value = "销售售后类型区分;1.pms; 2.ups")
    @TableField("TENANT_ID")
    private String tenantId;
}
